package com.yikome.constant;

public class StatusConstant {
	
	public static final String SOURCE_TYPE_TMALL = "tmall" ; 
	public static final String SOURCE_TYPE_TAOBAO = "taobao" ;
	public static final String SOURCE_TYPE_1688 = "1688" ;
	public static final String SOURCE_TYPE_ALIPRESS = "aliexpress" ;
	public static final String SOURCE_TYPE_PDD = "PDD" ;

	public static final Integer PRODUCT_STATUS_CREATE_FAILED = -1 ; //创建失败
	
	public static final Integer PRODUCT_STATUS_CREATE_IN = 0 ; //创建中
	
	public static final Integer PRODUCT_STATUS_CREATE_SUCCESS = 1 ; //创建成功
	
	public static final Integer PRODUCT_STATUS_ONLINE_UP = 10 ; 
	
	public static final Integer PRODUCT_STATUS_ONLINE_DOWN = -10 ; 
	
	public static String statusName(Integer statusCode) {
		
		String statusName = "--" ; 
		switch (statusCode) {
		case -1:
			statusName = "创建失败" ;
			break;
		case 0:
			statusName = "创建中" ;
			break;
		case 1:
			statusName = "创建成功" ;
			break;
		case 10:
			statusName = "上线中" ;
			break;
		case -10:
			statusName = "已下线" ;
			break;
		default:
			break;
		}
		return statusName;
	}
}
